<%@ page language="java" import="java.util.*, com.zjut.zs.applyview.manager.*, com.zjut.zs.applyview.dao.*, com.zjut.zs.util.tools.*,com.zjut.an.util.tools.*,com.zjut.an.util.system.*" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>layui</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" type="text/css" href="../plugins/layuiadmin/layui/css/layui.css" media="all">
  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<%
ZsApplyViewManager manager = (ZsApplyViewManager)SpringContextUtil.getBean("ZsApplyViewManager");
String sendStatus = null;
if(request.getParameter("sendStatus")!=null) {
	sendStatus = request.getParameter("sendStatus");
}
String appStatus = null;
if(request.getParameter("appStatus")!=null) {
	appStatus = request.getParameter("appStatus");
}
String checkStatus = null;
if(request.getParameter("checkStatus")!=null) {
	checkStatus = request.getParameter("checkStatus");
}
String passStatus = null;
if(request.getParameter("passStatus")!=null) {
	passStatus = request.getParameter("passStatus");
}
%>
<body>
	<jsp:include page="systemrolevalidate.jsp" flush="true">
		<jsp:param name="m" value="userpower"/>
	</jsp:include>
	<blockquote class="layui-elem-quote news_search">
		<form action="" class="layui-form" id="searchform">
			<div class="layui-inline" style="width: 100px;">
				<select name="sendStatus" id="appStatus">
					<option value="">申请表提交</option>
					<option value="已提交">已提交</option>
					<option value="未提交">未提交</option>
				</select>
			</div>
			<div class="layui-inline" style="width: 100px;">
				<select name="appStatus" id="appStatus">
					<option value="">材料确认</option>
					<option value="已确认">已确认</option>
					<option value="未确认">未确认</option>
				</select>
			</div>
			<div class="layui-inline" style="width: 100px;">
				<select name="checkStatus" id="checkStatus">
					<option value="">初审</option>
					<option value="初审通过">初审通过</option>
					<option value="初审未通过">初审未通过</option>
				</select>
			</div>
			<div class="layui-inline" style="width: 100px;">
				<select name="passStatus" id="passStatus">
					<option value="">考试</option>
					<option value="考试通过">考试通过</option>
					<option value="考试未通过">考试未通过</option>
				</select>
			</div>
			<div class="layui-inline">
			    <a class="layui-btn" lay-submit lay-filter="btnSearch">查询</a>
			</div>
		</form>
	</blockquote>
<div class="layui-form">
	<table class="layui-table" lay-even="" lay-skin="row">
			<thead><tr><th>学校</th><th>人数</th></tr></thead>
			<%
			List list = manager.getDataCountByHql("inByxxmc",sendStatus, appStatus, checkStatus, passStatus);
			for (int i = 0; i<list.size(); i++){
				DataCount obj = (DataCount)list.get(i);
				out.print("<tr><td>"+obj.getName()+"</td><td>"+obj.getValue()+"</td></tr>　");
			}
			 %>	
	</table>
</div>	

<script type="text/javascript" src="../plugins/layuiadmin/layui/layui.js"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 --> 
<script>
var $;
layui.use(['jquery'], function(){ 
   $ = layui.$;
});
var table;
layui.use(['table','form'], function(){
  table = layui.table
  ,form = layui.form;
//监听提交
  form.on('submit(btnSearch)', function(data){
    var rowData = data.field;
    console.info(rowData);
    window.location.href="zsCount3.jsp?sendStatus="+rowData.sendStatus+"&appStatus="+rowData.appStatus+"&checkStatus="+rowData.checkStatus+"&passStatus="+rowData.passStatus;
  });
});

</script>
</body>
</html>